﻿<Page x:Class="JPGResizer.Pages.Page3"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:localcontrols="clr-namespace:JPGResizer.Controls"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      d:DesignHeight="300" d:DesignWidth="400"
	Title="选择命名方式">

    <Grid>
        <GroupBox Header="选择命名方式">
            <StackPanel Margin="5" VerticalAlignment="Top" HorizontalAlignment="Left">
                <StackPanel Orientation="Vertical" HorizontalAlignment="Left">
                    <RadioButton Name="rbNameType1" Content="前缀+原始文件名+附缀" Margin="2" VerticalAlignment="Center" IsChecked="True"/>
                    <RadioButton Name="rbNameType2" Margin="2" VerticalAlignment="Center">
                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="前缀+自增数字:" VerticalAlignment="Center"/>
                            <localcontrols:NumbericTextBox x:Name="tbStartNum" MinWidth="25" MaxWidth="100" Margin="2,0" VerticalAlignment="Center"/>
                            <TextBlock Text="+附缀" VerticalAlignment="Center"/>
                        </StackPanel>
                    </RadioButton>
                </StackPanel>
                <StackPanel>
                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
                        <TextBlock Text="前缀：" Margin="2" VerticalAlignment="Center"/>
                        <TextBox Name="tbFirstExtenssion" MinWidth="75" MaxWidth="100" Margin="2" VerticalAlignment="Center"/>
                        <TextBlock Text="    "/>
                        <TextBlock Text="附缀：" Margin="2" VerticalAlignment="Center"/>
                        <TextBox Name="tbLastExtenssion"  MinWidth="75" MaxWidth="100" Margin="2" VerticalAlignment="Center"/>
                    </StackPanel>
                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
                        <TextBlock Text="最终文件名预览：" Margin="2" VerticalAlignment="Center"/>
                        <TextBlock Name="txtPre" Text=".jpg" Margin="2" VerticalAlignment="Center"/>
                    </StackPanel>
                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
                        <TextBlock Text="图片的保存路径：" Margin="2" VerticalAlignment="Top"/>
                        <TextBox Name="tbSavePath" Width="200" Height="100" AcceptsReturn="True" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto" Margin="2" VerticalAlignment="Center"/>
                        <Button Name="SelectFolder" Click="SelectFolder_Click" Content="选择文件夹" Margin="2" VerticalAlignment="Top"/>
                    </StackPanel>
                </StackPanel>
            </StackPanel>
        </GroupBox>
    </Grid>
</Page>
